package com.steven.image.utils

import java.util.*

object SystemUtils {
    fun isOSLinux(): Boolean {
        val prop: Properties = System.getProperties()
        val os: String? = prop.getProperty("os.name")
        return os != null && os.toLowerCase().indexOf("linux") > -1
    }

    fun isOSWin(): Boolean {
        val prop: Properties = System.getProperties()
        val os: String? = prop.getProperty("os.name")
        return os != null && os.toLowerCase().startsWith("win")
    }
}